package TrueTopic;

import java.util.Scanner;

public class TestA {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        while (n-- > 0) {
            String str = "";
            int x = sc.nextInt();
            for (int i = 0; i < x; i++) {
                str += "AC ";
            }
            str = str.trim();
            System.out.println(str);
        }

    }
}
